<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
    "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
    "http://struts.apache.org/dtds/struts-2.0.dtd">

<struts>
	<constant name="struts.enable.DynamicMethodInvocation" value="false" />
	<constant name="struts.devMode" value="false" />
	<constant name="struts.custom.i18n.resources" value="ApplicationResources" />
	
	<package name="default" extends="struts-default">
		<result-types>
      		<result-type name="tiles" class="org.apache.struts2.views.tiles.TilesResult"/>
    	</result-types>
		
		
		<action name="login" class="it.apiconsulting.editT.view.LoginAction" method="execute">
            <result name="success" type="chain">homePage</result>
            <result name="error">index.jsp</result>
        </action>
        <action name="homePage" class="it.apiconsulting.editT.view.HomePageAction" method="execute">
            <result name="success" type="tiles">welcome</result>
        </action>
        
        
        
        <!-- ################################################################################## -->
        <action name="registerUtente" class="it.apiconsulting.editT.view.RegisterUtenteAction" method="execute">
            <result name="success" type="tiles">registerUtente</result>
        </action>
        <action name="registerUtenteForm" class="it.apiconsulting.editT.view.RegisterUtenteAction" method="save">
            <result name="success" type="tiles">welcome</result>
            <result name="error" type="chain">registerUtenteForm</result>
        </action>
        
		<!-- ################################################################################## -->
        <action name="registerGiocatore" class="it.apiconsulting.editT.view.GiocatoreAction" method="execute">
            <result name="success" type="tiles">registerGiocatore</result>
        </action>
        <action name="registerGiocatoreForm" class="it.apiconsulting.editT.view.GiocatoreAction" method="save">
            <result name="success" type="tiles">registerGiocatore</result>
            <result name="error" type="chain">registerGiocatoreForm</result>
        </action>
        
	</package>
</struts>
